import request from '@/utils/request'

// 添加入职记录
export function addPersonDimission(data) {
  return request({
    url: '/departureRegistration/add',
    method: 'POST',
    data
  })
}

// 删除入职记录
export function deletePersonDimission(data) {
  return request({
    url: '/departureRegistration/delete',
    method: 'post',
    data
  })
}

// 列表、分页入职记录模块.........
export function getPersonDimissionList(params) {
  return request({
    url: '/departureRegistration/list',
    method: 'POST',
    params
  })
}

// 查询人事调动与离职记录
export function selectPersonDimission(params) {
  return request({
    url: '/departureRegistration/load',
    method: 'POST',
    params
  })
}
// 修改人事调动与离职记录
export function updatePersonDimission(data) {
  return request({
    url: '/departureRegistration/update',
    method: 'post',
    data
  })
}

// 模糊查询团队下拉信息
export function selectTeam(params) {
  return request({
    url: '/administrative/teams/getTeamIdAndNameListByName',
    method: 'post',
    params
  })
}
